import React from 'react';
import { Suspense } from 'react';
import './App.css';
import { useRoutes } from 'react-router-dom';
import routes from './router/index'
import routers from './router/index';

function App() {
  return (
    <div className="App">
       {/* 渲染路由规则出口 */}
       <Suspense>
           {useRoutes(routers)}
       </Suspense>
    </div>
  );
}

export default App;
